<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html>
<head>
<link href="<c:url value="css/app.css" />" rel="stylesheet" type="text/css">
<title>基于Spring Security的权限管理应用</title>
</head>
<body class="security-app">
    <div class="details">
        <h2>基于Spring Security的权限管理应用</h2>
    </div>

    <div class="lc-block">
        <h1>
            欢迎 <b><c:out value="${pageContext.request.remoteUser}"></c:out>，您在这里可以对相关资源进行管理</b>
        </h1>
        <form action="/logout" method="post">
            <input type="submit" class="button red big" value="退出" /> <input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}" />
        </form>
    </div>
</body>
</html>